/*
 * WantToBuyDetailContract.java
 * business
 *
 * Created by chentao on 2017/5/12.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.main.discovery.wanttobuydetail;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.data.WantToBuyEntity;
import com.yidiandao.business.data.bean.Goods;
import com.yidiandao.business.data.bean.ShareEntity;
import com.yidiandao.business.data.event.RefreshDiscoveryWantToBuyDetailEvent;
import com.yidiandao.business.interfaces.LoadMoreListener;
import com.yidiandao.business.interfaces.RefreshLayoutStateListener;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;

import java.util.List;

public interface WantToBuyDetailContract {

    interface View extends BaseView<Presenter>, LoadMoreListener, RefreshLayoutStateListener {

        void finishActivity();

        void showSuccessDialog();

        void showFailedDialog(String message);

        void setDisplayItems(List<DisplayListItem> listItems);

        void refreshHeader(WantToBuyEntity entity);

        void showShareDialog(ShareEntity shareEntity);

        void onEventMainThread(RefreshDiscoveryWantToBuyDetailEvent event);
    }

    interface Presenter extends BasePresenter {

        void getOfferList(boolean isRefreshing, List<Goods> similarGoodsList);

        void submitOffer(String price, String shippingFee, String phone);

        void doShare();
    }
}
